# Maintainer: Jelle van der Waa <jelle@archlinux.org>

pkgname=python-sgmllib3k
pkgver=1.0.0
pkgrel=5
arch=(any)
license=("BSD")
pkgdesc="Python 3 smgllib port"
url="https://pypi.org/project/sgmllib3k/#description"
makedepends=(python-setuptools)
depends=(python)
replaces=(python-sgmllib)
provides=(python-sgmllib)
_name=${pkgname#python-}
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('7868fb1c8bfa764c1ac563d3cf369c381d1325d36124933a726f29fcdaa812e9')

build() {
  cd "${_name}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_name}-${pkgver}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  # Upstream should ship a license file...
  #install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
